package com.AdvancedDemos.继承.模板设计模式案例2;

public class HouseTwo extends HouseTemplate {

    protected HouseTwo(String houseName) {
        super(houseName);
    }

    @Override
    protected void buildDoor() {
        System.out.println(houseName + "的门采用木门");
    }


    @Override
    protected void buildWindows() {
        System.out.println(houseName + "的窗户要向南");
    }

    @Override
    protected void buildWall() {
        System.out.println(houseName + "的墙使用玻璃制造");
    }

    @Override
    protected void buildBase() {
        System.out.println(houseName + "的地基使用花岗岩");
    }
}
